	.file "SquareSum.s"

	.section .rodata
.LC0:
	.string "sum of square of 1 to 10 is %d\n"

	.section .text
	.global main
	.type main, @function
main:
	pushq	%rbp
	movq	%rsp, %rbp

	leaq	.LC0(%rip), %rdi
	movl	$0, %esi
	movl	$1, %eax
	movl	$0, %edx
	movl	$10, %ecx
1:
	movl	%eax, %edx
	imull	%edx, %edx
	addl	%edx, %esi
	incl	%eax
	loopl	1b

	call	printf@PLT

	leaveq
	retq
